.BACKGROUND { background-color: #000; }
.glow {
  font-size: 80px;
  color: #fff;
  text-align: center;
  -webkit-animation: glow 1s ease-in-out infinite alternate;
  -moz-animation: glow 1s ease-in-out infinite alternate;
  animation: glow 1s ease-in-out infinite alternate;
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
  }
}

a { text-decoration: none; }

ul {
    list-style: none;
    padding: 0;
    font: bold 0.8rem sans-serif;
    color: #514070;
}

ul li {
    padding: 0.2em 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}

ul li a {
    color: inherit; /* Inherit color for easy hover color changes */
    text-decoration: none;
    position: relative;
    display: inline-block;
}

ul li a:hover {
    color: #a65aed; /* Hover color for text */
}

ul li a span {
    position: relative;
    display: inline-block; /* Span should be inline to match text width */
}

ul li a span:before {
    content: "";
    position: absolute;
    bottom: -2px; /* Adjust underline positioning */
    left: 50%; /* Start from center */
    transform: translateX(-50%) scaleX(0); /* Initially hidden and centered */
    height: 3px; /* Thickness of the underline */
    background: #9974db; /* Color of the underline */
    width: 100%; /* Match span's text width */
    transition: transform 0.3s;
    transform-origin: center; /* Expand from the center */
}

ul li a:hover span:before {
    transform: translateX(-50%) scaleX(1); /* Expand underline from center on hover */
}
